package com.pjedu.springbootthymeleaf10.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author 汪洋
 * @Description
 */
@Controller
public class HelloController {
    @RequestMapping("/")
    public String index(HttpServletRequest request) {
        request.setAttribute("message","你好啊,Thymeleaf!");
        return "HelloThymeleaf";
    }
}
